public class MyAccountListCntrl {
    public MyAccountListCntrl() {
    }
    public Id BookId;
    public List<AccountWrapperCls> acctList {get;set;}
    public Set<String> selAccountNames {get;set;}
    public List<Id> selAccountId {get;set;}
    public List<Account> BookIdList {get;set;}
    public Boolean hasSelAcct {get;set;}

    public MyAccountListCntrl(ApexPages.StandardSetController controller){    
          acctList = new List<AccountWrapperCls>();
          selAccountNames = new Set<String>();
          selAccountId  = new List<Id>();
          for(Account a : [SELECT AccountNumber, Name,Id FROM Account ]){
              acctList.add(new AccountWrapperCls(a));
              System.debug('A0000000000' +acctList);
          }
    }
    public List<SelectOption> getItems(){
            List<SelectOption> options = new List<SelectOption>();
              options.add(new selectOption('List1','List1'));
              options.add(new selectOption('List2','List2'));
              options.add(new selectOption('List3','List3'));
              options.add(new selectOption('List4','List4'));
            return options;
  }            
    // METHODS
     public PageReference displaySelectedAccountNumbers(){
        BookId = ApexPages.currentPage().getParameters().get('Id') ; 
         System.Debug('Bookiiiiiiiiiiiii' + BookId);
         PageReference pageRef = new PageReference('/'+BookId);
          selAccountNames.clear();
          selAccountId .clear();
          hasSelAcct = false;
          for(AccountWrapperCls cWrapper : acctList){
               if(cWrapper.isSelected){
                    hasSelAcct = true;
                    selAccountNames.add(cWrapper.cAccount.Name);
                    selAccountId .add(cWrapper.cAccount.Id);                                     
              }
          }
      BookIdList = [Select Name from Account where Id = :  selAccountId];  
      System.debug('BookIdListC----------' + BookIdList);
       return null;
     }   
}